package com.weiiew.common.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @TableName recipe_product
 */
@TableName(value = "recipe_product")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RecipeProduct implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 配方产品表
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 物品id
     */
    private Integer itemId;
    /**
     * 配方id
     */
    private Long recipeId;
    /**
     * 物品数量
     */
    private Integer amount;
}